<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div>
    <div id="teacher" style="margin-left: 25%; margin-top: 18%;"></div>
</div>


<script type="text/javascript" src="__STATIC__/qrcode/qrcode.min.js"></script>
<script type="text/javascript">

    // 生成二维码
    function makeCode (url,dom) {
        var qrcode = new QRCode(document.getElementById(dom), {
            width : 150,
            height : 150
        });
        qrcode.makeCode(url);
    }

    // 生成对应的二维码
    makeCode("{$url_arr}",'teacher');

</script>
</body>
</html>
